<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>计算器</title>
		<link rel="stylesheet" href="calculate.css"/>
	</head>
	<body>
		<div id="jisuanqi">
			<input id="num" readonly/>
			<div class="butt" id="num0" onclick="show('0')">
				<span>0</span>
			</div>
			<div class="butt" id="num1" onclick="show('1')">
				<span>1</span>
			</div>
			<div class="butt" id="num2" onclick="show('2')">
				<span>2</span>
			</div>
			<div class="butt" id="num3" onclick="show('3')">
				<span>3</span>
			</div>
			<div class="butt" id="num4" onclick="show('4')">
				<span>4</span>
			</div>
			<div class="butt" id="num5" onclick="show('5')">
				<span>5</span>
			</div>
			<div class="butt" id="num6" onclick="show('6')">
				<span>6</span>
			</div>
			<div class="butt" id="num7" onclick="show('7')">
				<span>7</span>
			</div>
			<div class="butt" id="num8" onclick="show('8')">
				<span>8</span>
			</div>
			<div class="butt" id="num9" onclick="show('9')">
				<span>9</span>
			</div>
			<div class="butt" id="dian" onclick="show('.')">
				<span>.</span>
			</div>
			<div class="butt" id="jia" onclick="add()">
				<span>+</span>
			</div>
			<div class="butt" id="jian" onclick="minus()">
				<span>-</span>
			</div>
			<div class="butt" id="cheng" onclick="times()">
				<span>×</span>
			</div>
			<div class="butt" id="chu"  onclick="devide()">
				<span>÷</span>
			</div>
			<div class="butt" id="baifen" onclick="percent()">
				<span>%</span>
			</div>
    		<div class="butt" id="zhengfu" onclick="zf()">
    			<span>+/-</span>
    		</div>
    		<div class="butt" id="dengyu" onclick="jisuan()">
    			<span>＝</span>
    		</div>
    		<div class="butt" id="clear" onclick="qingChu()">
    			<span>AC</span>
    		</div>
		</div>
		<script>
			num.value="0 ";
			var num1;
			var num2;
			var isNew=false;
			
		</script>
	</body>
</html>